package com.hidt.shop.util;

/**
 * @author Fhy
 * @Title RestDate
 * @Package com.hdit.shop.util
 * @Description restful返回数据类型
 * @date 2021/2/21 17:49
 */
public class RestDate<T> {
    private int code;
    private String mess;
    private T data;

    public RestDate() {}

    public RestDate(int code, String mess, T data) {
        this.code = code;
        this.mess = mess;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMess() {
        return mess;
    }

    public void setMess(String mess) {
        this.mess = mess;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "RestDate{" +
                "code=" + code +
                ", mess='" + mess + '\'' +
                ", data=" + data +
                '}';
    }
}
